﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="Web.myadmin.Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>后台登录</title>
    <script src="/Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <style type="text/css">
        body
        {
            background-color: #dfdfdf;
            font: Arial, Helvetica, sans-serif, "宋体";
            font-size: 12px;
            margin: 0;
            padding: 160px 0 0 0;
        }
        #main
        {
            width: 750px;
            margin: 0 auto;
            padding: 0;
            background: url(image/lbg.jpg) no-repeat;
            height: 263px;
        }
        .login
        {
            padding: 70px 0 0 405px;
        }
    </style>
    <script type="text/javascript">
        $(function () {
            $("#imgCode").click(function () {
                $("#imgCode").attr("src", "/Ajax/VerifyCode.ashx?time=" + Date());
            });
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="main">
        <div class="login">
            <table cellpadding="0" cellspacing="0" border="0" width="100%">
                <tr>
                    <td align="center" valign="middle" width="25%" height="29">
                        用户名：
                    </td>
                    <td colspan="2">
                        <asp:TextBox ID="txtUserName" runat="server" style="border: 1px solid #c5c5c5" 
                            MaxLength="20" Width="130px" value="admin"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="center" valign="middle" width="25%" height="29">
                        密&nbsp;&nbsp;&nbsp;码：
                    </td>
                    <td colspan="2">
                        <asp:TextBox ID="txtPassword" runat="server" style="border: 1px solid #c5c5c5" 
                            MaxLength="20" TextMode="Password" Width="130px" value="123"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="center" valign="middle" width="25%" height="29">
                        验证码：
                    </td>
                    <td width="33%">
                        <asp:TextBox ID="txtCheckCode" runat="server" Width="67px" 
                            style="border: 1px solid #c5c5c5" MaxLength="4"></asp:TextBox>
                    &nbsp;<img id="imgCode" title="看不清？点击更换验证码" src="/Ajax/VerifyCode.ashx" style="cursor:hand" />
                    </td>
                    <td width="41%">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td width="25%" height="29" align="center" valign="middle">
                    </td>
                    <td width="33%">
                        <asp:ImageButton ID="imbLogin" ImageUrl="image/login.jpg"
                            runat="server" onclick="imbLogin_Click" />
                    </td>
                    <td width="41%">
                        &nbsp;
                    </td>
                    <td>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    </form>
</body>
</html>
